import request from '@/utils/request'

// 查询纪念日提醒列表
export function listReminders(query) {
  return request({
    url: '/base/reminders/list',
    method: 'get',
    params: query
  })
}

// 查询纪念日提醒详细
export function getReminders(id) {
  return request({
    url: '/base/reminders/' + id,
    method: 'get'
  })
}

// 新增纪念日提醒
export function addReminders(data) {
  return request({
    url: '/base/reminders',
    method: 'post',
    data: data
  })
}

// 修改纪念日提醒
export function updateReminders(data) {
  return request({
    url: '/base/reminders',
    method: 'put',
    data: data
  })
}

// 删除纪念日提醒
export function delReminders(id) {
  return request({
    url: '/base/reminders/' + id,
    method: 'delete'
  })
}
